package com.brspace.qualitycontrol.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.brspace.qualitycontrol.entity.Permission;
import com.brspace.qualitycontrol.mapper.PermissionMapper;
import com.brspace.qualitycontrol.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangT
 * @since 2021-03-23
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Resource
    private PermissionMapper permissionMapper;
    @Override
    public List<Permission> selectListByUserId(String id) {
        return permissionMapper.findByUserId(id);
    }
}
